<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@include file="../../WEB-INF/jspf/admin.jspf" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="../../jq/redmond/jquery-ui-1.10.3.custom.min.css" type="text/css" rel="stylesheet"/>
        <link href="../../css/main.css" type="text/css" rel="stylesheet"/>
        <link href="../../jq/menu/menu.css" type="text/css" rel="stylesheet"/>
        <link href="../../jq/menu/submenu.css" type="text/css" rel="stylesheet"/>

        <link href="../../parainfo/table/table.css" type="text/css" rel="stylesheet"/>

        <script src="../../jq/jquery-1.10.2.min.js" type="text/javascript"></script>
        <script src="../../jq/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
        <script src="../../jq/menu/menu.js" type="text/javascript"></script>
        <script src="../../jq/menu/submenu.js" type="text/javascript"></script>

        <script src="../../parainfo/table/table.js" type="text/javascript"></script>
        <script src="js/trabajadores_act.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="ctop">
            <%@include file="../../WEB-INF/jspf/top.jspf" %>
        </div>

        <div id="m_menu">
            <%@include file="../../WEB-INF/jspf/menu.jspf" %>
        </div>

        <div id="cmenu2">
            <%@include file="../../WEB-INF/jspf/submenu.jspf" %>
        </div>

        <div id="cdata">
            <table style="margin: auto">
                <tr>
                    <td style="vertical-align: top">
                        <table class="parainfo" style="width: 700px">
                            <thead>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td>Apellidos Paterno</td>
                                    <td>Apellidos Materno</td>
                                    <td>Nombres</td>
                                    <td>Documento</td>
                                    <td>Estado</td>
                                </tr>
                            </thead>

                            <tbody id="qbody">
                                <tr>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                    </td>

                    <td style="vertical-align: top">
                        <table class="crud">
                            <tr>
                                <td>
                                    <a href="#" onclick="jsBus();" title="Buscar">
                                        <img src="../../images/find.png"/></a>
                                </td>
                                <td>
                                    <a href="#" onclick="jsAct();" title="Actualizar">
                                        <img src="../../images/refresh.png"/></a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="#" onclick="jsCon();" title="Consultar">
                                        <img src="../../images/find2.png"/></a>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

            <%-- para busquedas  --%>
            <div style="display: none">
                <div id="dbus" title="B&uacute;squeda de Trabajador">
                    <table>
                        <tr>
                            <td>Nro.&nbsp;Documento</td>
                            <td>
                                <input type="text" id="doc_bus" 
                                       maxlength="15" style="width: 200px"/>
                                &nbsp;&nbsp;&nbsp;
                                <input type="checkbox" id="idactivo_bus" checked="checked"/> Activo
                            </td>
                        </tr>
                        <tr>
                            <td>Año</td>
                            <td>
                                <select id="annio" onchange="jsannio();" style="width: 320px">
                                    <option value="0">Seleccione...</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Unid. Ejecutora</td>
                            <td>
                                <select id="uejecutora" onchange="jsuejecutora();" style="width: 320px">
                                    <option value="0">Seleccione...</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Corte</td>
                            <td>
                                <select id="corte" onchange="jscorte();" style="width: 320px">
                                    <option value="0">Seleccione...</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Sede</td>
                            <td>
                                <select id="sede" style="width: 320px">
                                    <option value="0">Seleccione...</option>
                                </select>
                            </td>
                        </tr>
                    </table>

                    <p id="error_bus" style="color: red"></p>
                </div>
            </div>

            <%-- para actualizar  --%>
            <div style="display: none">
                <div id="dact" title="Confirmar">
                    <h5 style="text-align: center">
                        &iquest;Desea Actualizar?
                    </h5>
                </div>
            </div>

            <%-- para consulta  --%>
            <div style="display: none">
                <div id="dcon" title="Consulta de Trabajador">
                    <table>
                        <tr>
                            <td>Nro.&nbsp;Documento</td>
                            <td>
                                <input type="text" id="doc_con" readonly="readonly" 
                                       maxlength="15" style="width: 110px"/>
                            </td>
                            <td style="text-align: right">
                                Estado 
                                <input type="text" id="estado_con" readonly="readonly" 
                                       maxlength="110" style="width: 110px"/> 
                            </td>
                        </tr>
                        <tr>
                            <td>Trabajador</td>
                            <td colspan="2">
                                <input type="text" id="trabajador_con" readonly="readonly" 
                                       maxlength="200" style="width: 376px"/>
                            </td>
                        </tr>
                        <tr>
                            <td>Fecha Inicio</td>
                            <td>
                                <input type="text" id="fechaini_con" readonly="readonly"
                                       style="width: 110px"/>
                            </td>
                            <td style="text-align: right">
                                Fecha Fin 
                                <input type="text" id="fechafin_con" readonly="readonly"
                                       style="width: 110px"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3" style="border-top:1px solid #72BFD4">&nbsp;</td>
                        </tr>
                        <tr>
                            <td>C&oacute;digo Core</td>
                            <td>
                                <input type="text" id="codcore_con" readonly="readonly"
                                       style="width: 110px"/>
                            </td>
                            <td style="text-align: right">
                                Cont. Vigente 
                                <input type="text" id="cvigente_con" readonly="readonly"
                                       style="width: 110px"/>
                            </td>
                        </tr>
                         <!--
                        <tr>
                            <td>Unid. Ejecutora</td>
                            <td colspan="2">
                                <input type="text" id="uejecutora_con" readonly="readonly"
                                       style="width: 376px"/>
                            </td>
                        </tr>
                        <tr>
                            <td>Corte</td>
                            <td colspan="2">
                                <input type="text" id="corte_con" readonly="readonly"
                                       style="width: 376px"/>
                            </td>
                        </tr>
                        <tr>
                            <td>Sede</td>
                            <td colspan="2">
                                <input type="text" id="sede_con" readonly="readonly"
                                       style="width: 376px"/>
                            </td>
                        </tr>
                         -->
                    </table>

                    <p id="error_con" style="color: red"></p>
                </div>
            </div>

            <%-- para mensajes  --%>
            <div style="display: none">
                <div id="dmsg" title="Mensaje">
                    <p id="msg" style="text-align: center;color: #800;margin: 20px"></p>
                </div>
            </div>
        </div>
    </body>
</html>

